package io.ganguo.chat.route.biz.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by hasee on 2016-04-06.
 */
public class EntityType {
    private static Map<Integer, Class<?>> map = new HashMap<Integer, Class<?>>();

    public static Class<?> implementClass(int entityType) {
        return map.get(entityType);
    }

    public static final int Object = 001;
    public static final int Follow = 100;
    public static final int Login = 101;
    public static final int Message = 102;
    public static final int User = 103;
    public static final int UserDetail = 104;


    static {
        map.put(Object, Object.class);//这是一个基础类
        map.put(Follow, Follow.class);
        map.put(Login, Login.class);
        map.put(Message, Message.class);
        map.put(User, User.class);
        map.put(UserDetail, UserDetail.class);
    }
}
